//
//  ViewController.h
//  TribleWar
//
//  Created by ＣＳＴ ＣＳＴ on 8/8/12.
//  Copyright (c) 2012 ＣＳＴ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PlayerController.h"
#import "RegistViewController.h"
#import "CallbackDelegate.h"
@interface ViewController : UIViewController<CallbackDelegate>
{
    PlayerController *gameView;
    RegistViewController *registViewController;
    id<CallbackDelegate> loginCallback;
}
@property (weak, nonatomic) IBOutlet UITextField *userAccount;

@property (weak, nonatomic) IBOutlet UITextField *password;

@property (weak, nonatomic) IBOutlet UIButton *loginBtn;

@property (weak , nonatomic) IBOutlet UIButton *signInBtn;

@property (weak, nonatomic) IBOutlet UILabel *netWorkStatusLabel;

- (IBAction)onPassword:(id)sender;

- (IBAction)onSetAccount:(id)sender;

- (IBAction)onLogin:(id)sender;

- (void) enterGame;

- (IBAction) onRegist:(id)sender;

- (BOOL)isValid:(NSString *)account password:(NSString *)password;
@end
